#ifndef PROKOFIEV_H
#define PROKOFIEV_H

#include <QWidget>
#include <QPixmap>
#include <qlabel.h>
#include <QPushButton>
#include <QMediaPlayer>
#include <QPushButton>

class Prokofiev : public QWidget
{
    Q_OBJECT

public:
    Prokofiev(QWidget *parent = nullptr);
    ~Prokofiev();
    void updateRoleAnimation();                                 //展示图片
    bool eventFilter(QObject *watched, QEvent *ev) override;    //操作事件
    QMediaPlayer *player;                                       //音乐播放
    void initBtn();                                             //初始化按钮


private:
    QLabel *roleLabel;                                          //窗口
    qint8 currentFrame;                                         //图片编号
    QPushButton *topBtn;                                        //置顶按钮
    QPushButton *closeBtn;                                      //关闭按钮
    bool istop = 0;                                             //是否置顶
};
#endif // PROKOFIEV_H
